﻿using System.Drawing;
using System.Windows.Forms;

namespace GraphDrawing2.Canvas
{
    public class InputManager : IInputManager
    {
        readonly Control host;

        public InputManager(Control host)
        {
            this.host = host;
        }

        public Point MouseCoordinates
        {
            get { return host.PointToClient(Control.MousePosition); }
        }

        public MouseButtons MouseButtons
        {
            get { return Control.MouseButtons; }
        }

        public Keys Keys
        {
            get { return Control.ModifierKeys; }
        }
    }
}